package com.konne.nightmare.FastPublicOpinion.mvp.presenter;

import com.konne.nightmare.FastPublicOpinion.base.BaseMvpPresenter;
import com.konne.nightmare.FastPublicOpinion.mvp.view.ICreateGroupView;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGAppointFargment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGFreeFargment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGSystemFargment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGMAppointFragment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGMFreeFragment;
import com.konne.nightmare.FastPublicOpinion.ui.information.fragment.CGMSystemFragment;

/**
 * Create by ws.
 * on Data:2022/1/25  Time:下午 1:03.
 * description: ** .
 */
public class CreateGroupPresenter extends BaseMvpPresenter<ICreateGroupView> {
    /**
     * @param type 0：指定 1：系统随机 2：学生自由 ，3指定组管理，4系统随机组管理，5，学生自由组管理
     * */
    public void init(int type){
        switch (type){
            case 0:
                getView().setFragment(CGAppointFargment.getInstance());
                break;
            case 2:
                getView().setFragment(CGFreeFargment.getInstance());
                break;
            case 3:
                getView().setFragment(CGMAppointFragment.getInstance());
                break;
            case 4:
                getView().setFragment(CGMSystemFragment.getInstance());
                break;
            case 5:
                getView().setFragment(CGMFreeFragment.getInstance());
                break;
            default:
                getView().setFragment(CGSystemFargment.getInstance());
                break;
        }
    }
}
